﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._18_迭代器模式
{
    /// <summary>
    /// 迭代器接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IIterator<T>
    {
        bool HasNext();

        T Next();
    }
}
